<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./index.js"></script>
  <!-- <script src="./1.js"></script> -->
</head>

<body>
  <div>
    <div><textarea style="width: 800px;height: 500px;" id="base64"></textarea></div>
    <div><button id="base64ToMp3">base64ToMp3</button></div>
  </div>

  <script>
    var base64ToMp3Btn = document.getElementById('base64ToMp3')
    // document.getElementById('base64').value = data.data
    base64ToMp3Btn.onclick = function () {
      var base64 = document.getElementById('base64').value;
      // console.log('base64:' + base64)
      if (base64) {
        downloadFile(base64, 'download', 'mp3');
      }
    }
  </script>
</body>

</html>